package com.szh.cloud.login.control;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class TestController {
    @Secured("ROLE_Test1")
    @RequestMapping("/test1")
    public String test1Page(){
        return "/test/Test1Page";

    }
    @Secured("ROLE_Test2")
    @RequestMapping("/test2")
    public String test2Page(){
        return "/test/Test2Page";

    }
}
